reverted to old javascript