Fixed prototype.js support