read in client js at runtime