Fix JS function documentation