Fixed an ajax problem

Modifications I made to the javascript to get attachments to upload
caused the security page to stop working. After a few hours of hunting I
finally found it. Two lines of javascript...