reformat javascript/pelmanism