javascript new regexp with variable