Fix for ES5 browsers