Fixing maddness: http://stackoverflow.com/questions/7331753/strange-behavior-of-javascript-regex-test-function