Improved JavaScript #5