Ported inspector script to phantomJS