Update formats.js

Input DM1 and DM2 formats.