Optimize JavaScript, simple trick and techniques - Part 1