Restore function was broken by previous JS lints