unify intendation in Avatar example & convert the js part (in index.html)
to 4 spaces like code elsewhere (and was partly here too)