use jsx to transform to js and update example