new js file added for pawn logic