Issue #4294 : Add LoaderTest and PathTest into js-tests. Bind some api about constants into jsb.

Issue #4294 : Add LoaderTest and PathTest into js-tests
Bind some api about constants into jsb.