added javascript for tagfields