Javascript improvements.