Updated main.js

Override the ProjectManager as long as it has no easy to use api