repair the slowly loading and the js bug