Update JavaScript Error Code