path to javascript file is now constructed from config variables,  defined