expose js api
Merge pull request #2 from Wayla/api

expose js api