Make Prototypejs 1.7x compatible