[*] Avoided some exceptions and added support for it to run even without phantomjs