remove local register
apply require js
- modularize javascript