Here step by step how to jailbreak iOS7.1.X:
Step 1: Download the latest version of Pangu jailbreak for Mac from this page.
Step 2: Make sure your device will work with Pangu. According to the Chinese website, the following devices are compatible with this version of the jailbreak: