remove useless function, refactor minor ref to proper place
speed-up page, run npm install first