Make custom.example.js work for IPython 2.x

Revert back to using `$([IPython.events])` for 2.x backward compatibility.