get minify to work
move min outside, refactor js