Phantom js integration

Integrates tests for the script, especially to check that the compressed version will still work.