fix window onresize
update minified version
Merge pull request #126 from dmkuznetsov/fix-onresize

Fix onresize