add js interface for inputs