fixes npm main to use ./out/ script

adds $regexp compare method
adds compile to grunt test task