use jquery.trap if available

@myabc @ulferts 
if / when you merge this in, please update the commit in the bower.json of openproject