Small perfomance issues fixed

Do not create the same regular expression for every instance, and the same function which creates wrapper for every method.
Also variable for parent prototype was renamed to avoid ambiguous names.