I\'m totally new to javascript, and my goal is not to be proficient. However, I need to debug what\'s happening so that I can use headless Selenium (phantomJS) with javascri