updated for props
to js