Chenged JS indentation to 2 spaces according to the code style recommendations.