added defaults incase on IE8 for some reason