Getting 404 in the Javascript

I think this is not good idea – create many enter points. Open Web Inspector and check your URL which using in JS code.

But much better use the default admin_url( 'admin-ajax.php' ) to creates path which should be used in Java Script.

tech