formatting and interface

add javascript changes generated from
commit 2287106782bf31e25e4170143ac7fd40491fd034 on master branch