prepare env for jquery