JSHint compliance. Tested using included tester.

Made corrections to pass JSHint checking.