reverted js cancel function: