Add javascript for masthead