Compatibility with older browsers fix

Thanks to a person for pointing out this compat issue.