Removed extra tab space and unnecessary comments on JS functions