Moved JS to footer to avoid delayed page load