alertX in $.proxy(alertX,o) is without braces (the braces will end up calling the function).