Javascript cleanup -- more linting needed.