removes js errors