js function "start class"