Add javascript for cover changing button