fix bug where animation would break in FireFox without a leading 0 on time