Adding the projects javascript, and some other fixes.