jshint fixes.
Added phantomjs compatibility (ugh). Run `phantomjs test/phantomjs/test.js` to test with the cat image.
Merge pull request #1 from zachleat/master

Adding phantomjs compatibility.