The problem was that the kitchensink project doesn’t include cordova.js as it is made for browsers. The back button problem was solved by simply including “<script src=”./components/loader.js"></script>" in my index.html