Use HTTPS for loading jQuery
Catch eval errors and improve error reporting
Add listener for page reloads
Use pure JavaScript instead of jQuery

The use of jQuery doesn't seem to have a lot benefit here.
Deprecate PhantomJS bot as it crashes after login
Ignore captured image files
Use CasperJS to automate the enrollment