javascript client code added for Fence API