[js] Using appropriate http method when calling a remote function to respect REST principles. [applied]