added javascript to pins