Fixed up some more JSHint stuff

Using window.requestAnimationFrame() instead of just
requestAnimationFrame() and also added Mousetrap to JSHint's list of
predefined variables.