Fix line drawing on scenarios prototype.

Also fix JS formatting.