Make the plugin work on elements that are added after initialization

Uses jQuery delegated events: https://api.jquery.com/on/

The second commit fixes the indentation.