Fix JS interface