deleting unused js
fix the problem of unexpected pausing