chrome support

it was working in firefox and chromium, but not in chrome