Add javascript for generate URL page