reverted a JS error