JS production error resolve