Added documentation to the JavaScript get_data and set_data methods.