simple javascript testing with rails and phantomjs