minor cleanup

changed to 4 space tabs
use underscore-style HTML element typecheck