Reformat Javascript