index.html: adding motion handling

added motion handling
and made html a bit more pretty

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