dont use deprecated split method
fix js unit test