Make code IE8 Compatible

default throws an error in IE8