Update index.php

Update to work with the latest Spark Cloud API