Add missing brace and add some perf improvements
Merge pull request #5 from itsananderson/master

Add missing brace to .js and add some perf improvements