script.js: added scaling, setViewBox, and renamed