Build: run minimal jscs on tests
Build: package scripts - npm start == grunt start
Style: minor changes; move parent setting below document check
Selector: save unload handler outside setDocument

- Avoids attaching multiple handlers
- NOTE: removing the function wrapper completely causes a
  "Permission Denied" error in IE

Closes gh-1874