Reverted class creator to Prototype.js's. Added functions
to function and string class.