Your JS code is pathed to JavaScript2/Variables2.js but in your PHP folder it's stored at JavaScript/Variables2.js, so the browser can't find it. Other than the fact that var isn't used much any more your code is fine.
JavaScript2/Variables2.js
JavaScript/Variables2.js
var