Strip overflow part of name with regex

Signed-off-by: Lance Chen <cyen0312@gmail.com>
Rewrite main logic with angular.js

Dump prototype.js

Signed-off-by: Lance Chen <cyen0312@gmail.com>