Fixes IE8 compatibility

Allows autofields to work on IE8