Update index.html

I added code that calls the accelerometer api to get the x,y,z accelerometer reading.