Fixed issue with using javascript api and 'all' request.