make landing page javascripts function properly