fix js representation