the new mobione uses google chrome to simulate the smartphone environment. to look at errors and check you apps, use the built in chrome development tools.
run your app in the simulator. right mouse click, pick inspect element, pick sources, hit ctrl O, scroll down to your custom.js file, pick it. now you can look around. check out the chrome devtools stuff. everything is there to do whatever you need.
good luck