Fix js interface