updated library so it can be used in IE better