fixed 'method not found' exception in chrome