Revert "Revert "Update formats.js""

This reverts commit 571c038853f460c4760517446068a71d7e0d7132.