add styleguide helper, improve main.js, remove old dependencies