reformat javascript indetation and spacing