Lint test javascript and clean it up