some usual methods about javascript