jshint fixes.
Added phantomjs compatibility (ugh). Run `phantomjs test/phantomjs/test.js` to test with the cat image.