removed dependency on table class from JS