Fix piggy JS