Added sorting. Updated js libs version.