for Code Quality

Script work fine but source code is awful ;) Sorry about that but I need to rewrite onload.js because at this moment flexibility of code is very poor.

by
by
by
by
by
by