fix upgraders generating content of js files

References #80