fix type in JS doc