usually using methods about javascript