Moved pathFunctions.js to js folder