Parser test cleanup

- Mark more globals in jshint
- Move fixScope to a utility module
- Fix some broken tests in IE