javascript: adapt apply on table unfold
javascript: adapt eval on table unfold
javascript: adapt applytc on table unfold
javascript: adapt evaltc on table unfold
javascript: re-enable optimizations