added sample code for arborjs implementation