Parser test cleanup

- Mark more globals in jshint
- Move fixScope to a utility module