refactor a bit. add deps file
fix case bug
add bundle.js
fix bugs