Hi i have over 10 years of experience in php, mysql, ajax, jquery
and it happen with my clients site as well. These are robots which automatically connects to your website and modify some code and does that.
Can you give me access to your server ?
And once i solve you need change your current ftp, cpanel, server and other passwords. So this not happen one more time.
Waiting for your response thanks.