add resetevent for js and loading