Modify patching to take advantage of new JS config file