add history api, comment in js files