JavaScript function frequently use