clean up a little of the config and javascript