Consolidate JS in settings template, move utility functions into their own class, fix bug with default comment detection, version bump