Modify JQueryApi constructor to allow use without api val defined.