If you check in settings under backup and restore there is a place to tap to do a factory reset. There's also a complicated button pushing way to do it but with Jellybean already on your phone you don't have to do it. There's lot's more info about your phone over in the Samsung Galaxy S4 - Android Forums
that's really the best place to post your questions about your new phone. Would you like me to move your thread over there?