documenting the js