Create Regex From String Javascript Programming