Removed javascript from the head and moved to below the footer.