fix js of class.moon example