resolve #651 escape forward slash in regexp

- escape forward slash in regexp for compatibility with Rhino on JDK6
Merge pull request #652 from mojavelinux/issue-651

resolve #651 escape forward slash in regexp