Separate out the landing page JS from the html view