getting back to work - starting with some JSHint corrections