It is working as expected. <script src="sapui5/resources/sap-ui-core.js"
I changed the path of resource. I think the problem was in your project code.
Create one new project----> copy resource folder from openui5---> dont add your custom lib--->create one button---> run that application.
Regards,
Karthik A