Fix issue #51 avoid incompatibility with prototype.js