access core functions on Android, iPhone and Blackberry using JavaScript