I get the following parsing errors when I run your code:
Uncaught SyntaxError: Unexpected token return
Uncaught ReferenceError: mySubmit is not defined
You are missing the closing )
on your $.post
call, which is breaking the parser. Once you fix that, you'll get the $ is undefined
error until you reference jQuery.