Fix previous commit so that it works in Chrome