added prop snippet for js