Update formats.js

I'm stupid
Merge pull request #20 from smb193/patch-12