Formatting file sizes wit JavaScript