TypeError: place.append is not a function
Line 4: f = read_local_file(scene.title, wait)
Which is not clear what that means?
The reading and writing of files is very different in a web browser. You can ask the user of your program to choose a text file on the user's computer and then use the contents of the file. The function read_local_file appends a button that says "Choose File" on the screen at the location specified, such as scene.title_anchor or scene.caption_anchor. When the user clicks that button, a file dialog appears which lets the user choose a file. Then the button is removed, and information about the file is returned.
f = read_local_file(scene.title_anchor)
print(f.name) # The file name
print(f.size) # File size in bytes
print(f.type) # What kind of file
print(f.date) # Creation date if available
print('-------------------')
print(f.text) # The file contents
If you say read_local_file(), the button is appended to the bottom of the window, corresponding to the jQuery location $('body').