moved regexp compilation to compile.js
fixed test case
0.4.0