To minify Javascript in WordPress, you will need to implement a plugin that does this automatically. You can read more about this here.