common.js:4 Uncaught SyntaxError: Unexpected token :
var $form = $('#reg').serialize();
$.ajax(function() {
url: 'app/helper/auth.help.php',
method: 'POST',
data: $form,
success: function(data) {
console.log(data);
},
error: function (xhr, status, error) {}
});