included phantomjs support, fixed some tests, cleaned up some syntax to make gjslint happy