If you use $ instead of jQuery in model_rest you can use other libraries than jQuery such as tire.js and zepto.js. another possibility is to have an adapter incase those libraries are missing a feature it needs.