moved to self calling function, removed monkey patching of Array prototype
Merge pull request #1 from dannyrscott/master

Move to self-calling function and remove monkey patching of Array prototype