Fixes #9. JS resizes