Refactor #4125: Apply all rest engine getter/setter in samples
Merge pull request #342 from pandamicro/tests_js_3.0

Refactor #4125: Apply all rest engine getter/setter in samples