Accessing any native API is only possible if those are exposed to JavaScript. If not you can use a tool such as PhoneGap.