convert Rush JS to object