Javascript: Fuction Documentation