Adding documentation to client side javascript