basic js error smoke test working

Can now run `grunt casperjs` to check for client-side JS errors.