Passing Device info to javascript