added doc + reached 9999 LOC of JS :)

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>