added javascript to the footer