index.html: adding more fixes to accelerometer

fixing value injections

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