Extracted js to projects.js file