Fixed async problem with javascript and cached webservice requests