Started refactoring.
Pulled in repeat function.
Removed jQuery dependency.
ECMA 5 +