js: adding cached Model function, fix for jqXHR