minor fix
move trimming logic into job class

need to be careful with it because of sourcemaps
add test for coffeescript sourcemap