Running `npm run test-{remote,local}` according to the context.

- moving jshint to `npm run test-pre`
- enabling screen buffer to handle Firefox
- running `npm run test-remote` if there is no PR number
- running `npm run test-local` otherwise