Fixed submit function call

Line 88: Added ($query.val()) missing for function to be called properly.