add main to append code-class
support bower.