Fix for js in chrome.