Fix javascript click handlers for removing and moving reference items

The method in the onclick attribute for removing and moving attributes gave an error, because the function in the onclick attribute could not be found. This is because the javascript functions for at.referencebrowserwidget are wrapped in a jquery function. 

Instead of using the onclick attribute, a jquery live event handler is now used for clicks. This fixes the error the onclick was giving.