removed legacy js