You may not change (and even not overwrite with a similar file) any script files. All script files must be in the "published folder", if you copy them into that folder after you have published, it might not work.