Use json.dumps for html generation in tablefier.py
Refactor get update/create form js into one module