added environment option; fixed issue with jquery when extending options array; fixed comment count