Attach Ace content the right way

This the fix as propesed in codio/client#61 and fixes codio/client#44.