Add support for running under PhantomJS and Travis
Merge pull request #16 from Stuk/phantom

Add support for running under PhantomJS and Travis