Extending the js interface