Main JS API Created.

Created main JS API.