decide if a parameter is needed in the js constructor