modify javascript structure