Elminate JSHint warnings

No logic changes. Fix spaces and quotes. Apply code advices from JSHint.