added javascript on headlines