Adds some external interfaces for the JS calls