Rename parameter.
Make Promise type global.
Fix jsDoc.
Refactor method name.
Fix jsDoc.
Finish with promises at server-side.