Stopped using javascript for scaling. Now using meta tags.