bugfix: add key elements correctly at proper position in DOM, fixes #57