coding style update
store regular expressions in variables so they are only parsed once
improve cache lookup
removed call to [].push()
min version
js map
performance improvements; fixes #6
update