Fixed javascript for landing page