added sugar.js and log plugin