js errors modified