Apache Cordova JavaScript for component(1)