minify scripts system, resolves #14