JSHint pass on the base script: missing {}