use domify and events to replace dom

The dependency component 0.7.1 is outdated and it would make me to have lots of duplicated components in my project. This patch would make the build file much smaller:)