reverted javascript fix