Added smooth page load effect to JS.