Fixed regex of js patterns for testcases
Merge pull request #199 from wagnerand/master

Fixed regex creation in test cases