Minor changes based on JS Hint, no changes to functionality