added shim for old browser support
adding a shim for old browsers