removed QueryString javascript function & created ConsumerFactory