Add javascript for handling vote ajax call and CAS logout.