Small JSHint cleanups
JSHint fixes, and end every file in a newline.