Use config package instead of javascript config file. ref #1