adding gabe's javascript client code