refactor javascripts into js, round out the widget, update the default widget