Better devderby js

Caching regexes is speed/efficiency boost.