Updated to version 4 and minified