Moved JavaScript to the bottom of the page into "js" block.