Fix JS bug
Update master docs