JS RegExp from variable -- From http://stackoverflow.com/questions/494035/how-do-you-pass-a-variable-to-a-regular-expression-javascript