app.py now has functions to return data as json
view_variants.html cleanup and datatables specific code moved to external files