removed dependency on prototype.js