Hello,
I can make your scripts easier to read and understand with writing them necessary comment lines, changing local variable names to more accurate ones and styling them.
If you have any other comments, please explain.
I am a night-working freelancer who currently works in a EDMS company, as a software engineer and dealing with cross-browser implementation and frontend applications.