Minor UI fixes and JS documentation comments