index.html: fixing accelerometer implemenation

added correct event handling for accelerometer
and value changing

Signed-off-by: Omer Kremer <okremer84@gmail.com>