JS API consistency with Java, change of profileOrId with just id as
method arguments.