minor fixes:

 - use ternary statements for cleaner code
 - use preventDefault() instead of return false in submit handler
 - use html_sanitize on notifications as well
 - get indenticon as default instead of the ugly default gravatar icon
 - use jQuery!