Removed dumb hax debugging line
Added iPhone web app stuff to index.html
Added call to repaint() after window resize