How to build a safe shocker/party zapper?

For one dollar you can get one of these. Just like the old handshake party zappers.