[javascript] How to prevent default event handling in an onclick method?