Few fixes in JS clients. Add support for sort to Http JS client