Added jsDocs

Resolved #19 
as -> for