moving open path.js to app