Fixes failing tests in phantomjs
Merge branch 'js_tests' of https://github.com/CanvasHS/Canvas.hs into js_tests