JS API consistency with Java, change of profileOrId with just id as
method arguments.
Merge pull request #514 from projsaha/jsDefects

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