refactor project_title_spec.js and fix transient spec failure

51 jobs for increase-karma-socket-timeout in 120 minutes and 36 seconds (queued for 1 minute and 8 seconds)