Closed #2802: Sync the APIs of HTML5 to the JSB

Sync the APIs of HTML5 to the JSB