added jquery request environment for testing and api binding