added config file and tweaked JS file