added a js sample for scope and this