js/jquery: Added event triggers

This closes #1