changed js interface