Cordova plugin, controls native header and footer from Javascript