new config options

This is a major change by using json instead of a configuration inside the main js.