I would make this a little more sentence like and put it above the function body. In JS, we generally expect explanatory comments to come before the code they are written (I think what you're doing here is kinda the docstring that python supports?).