add minified version
refactor code to side by side diff