分析前段js代码，重构js代码
Signed-off-by: work <work@ijibu.com>