Stricter jshint rules

Minor cleanup for compliance with jshint
A couple extra comments for clarity
Removed excessive variables