fixed $.ready
improved element delegate function
added Array.prototype.replace