added build and version number to JS API