Refactor projectorganizer.js to fit js style guides and lint