Misc cleanup with JSHint