Making the JavaScript more human-readable