added minification for legacy shared js files. closes #6