the simulate about traffic rule by javascript