Two ways for the getting javascript apps with native performace and access to native APIs.
https://www.nativescript.org/
http://ionicframework.com/docs/v2/native/background-mode/
https://www.nativescript.org/
Build truly native apps with JavaScript
Develop iOS, Android and Windows Phone apps from a single code base