Code refactoring

Prefer one of use cases jQuery instead of attributes assignment. It may improve performance... I think...