delete legacy js