Adding a utility function to call external functions from gwt without writing jsni