Attach Ace content the right way

The proposed fix from codio/client#61. 

This fixes codio/client#44.