removing onclick from html and adding a jquery method