Update index.php to be same as index.html
Fixed scrolling bug
Fixed bug on flip (images loaded while scrolling weren't flipping)