Update HTML dialog elements according to previous style rules,

Indent JS using two space soft tabs, per GitHub JavaScript guidelines
https://github.com/styleguide/javascript