remove excess js