Fixed jsHint warnings

Signed-off-by: Ryan Tvenge <ryan@tvenge.me>