correct js doc - fix formal and semantical errors for closure compiler