Added jsDoc documentation