update jsx to v2.0.4

upgrade jsx and make adjustments for new api