[BUG #7063] completed .toJS adaption to CST