1. add testcase (base.html, core.html)
2. code refactoring (base.js, core.js)