resetting html event listner functions in js files