Updated js for retry.html