read in client js at runtime and sorting changes