refactor doc about javascript