function to track screens

This commit includes function to expose track screen function from the native code to JavaScript.