Fix all js errors