Changed the .on('click') events to be bound to the body

Changed the .on('click') events to be bound to the body tag, allowing additional links that are added dynamically to use the same events.