linked global.js to all files