Browser tests work but phantomJS tests fail

will have to debug later