reformatting js