Pass script to the page to make it work in chrome