es6-ify components
fix $ undefined