Fix JS and CSS load order and minify common CSS