js fn specification correction