Improving the JavaScript Performance: Example of Accessing DOM