fix bug in schedule

When successful schedule returns either Scheduled, Running or Completed
rather than Attached.

    modified:   web/js/synmap.js
Fix bug in $cogeweb being called too early

Fix sequencing so $cogeweb is initialized before being called.

	modified:   web/SynMap.pl