1 define([], function() {
  2 	var prototype = {
  3 		init : function() {
  4 			String.prototype.replaceAll = function(str1, str2, ignore) {
  5 				return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, "\\$&"), ( ignore ? "gi" : "g")), ( typeof (str2) == "string") ? str2.replace(/\$/g, "$$$$") : str2);
  6 			};
  7 			/**
  8 			 *	Array Cloning without deep cloning. Or use Collection.ArrayList 
  9 			 */
 10 			Array.prototype.clone = function() {
 11 				return this.slice(0);
 12 			};
 13 		}
 14 	};
 15 	return prototype;
 16 });
 17