Fixed variable name bug that would cause IE8 to not process dates closes #334