Refomatting some JS