modified all APIs arguments order & format.

and added sample_mouse.html, sample_touch.html