AJAX usage & one-file js script