Changed from static variables to config-based

The configuration options were static in the file
earlier, but now they are set in the config.js file