update triggers to accept args
update index.html to use jquery style events