bunch of changes to make javascript in cells work with data loading