Added more to gitignore to ignore intellij files
Added check for phantomjs in the path before it looks it the modules path.
Made fixes to tests to get them working on a windows machine