Fix JavaScript error in IE8 by wrapping code

There was an 'script error' in IE8 which has something to do with the
way it interprets the compiled/minified JavaScript. Wrapping the
application specific code in an anonymous function fixes this.
Add phantomjs SSL options

phantomjs defaults to using SSLv3, which has now been disabled
everywhere. The protocol used can be changed with an option:

> --ssl-protocol=<val>                 Sets the SSL protocol
>   (supported protocols: 'SSLv3' (default), 'SSLv2', 'TLSv1', 'any')
Merge pull request #142 from alphagov/fix-js-ie-8

Fix JavaScript error in IE8 by wrapping code