finished commenting functions in this javascript class

Signed-off-by: Wouter Vanbelleghem <wouter.vanbelleghem@gmail.com>