Code style cleanup on new js file