added javascript for onclick alert