Fixed js to use new API  property