Corrected preventDefault issue that was causing problems in IE and Firefox