setUserCallbacks function

Set mouse callbacks in R or Javascript code