update main.js, refactor setSparkLine()
omit msg_trace
update branch optimize
show if function is ready