Hi Soumya,
i haven't worked with custom modules before, but i think you've got to add the library sap.ui.app in the bootstrap.
script src="resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.ui.commons, sap.ui.app" data-sap-ui-theme="sap_goldreflection"> </script>
So you've got to embed all the libraries you in the data-sap-ui-libs.
Good luck
Kai