Align error messages properly in JS