Fixing previous commit while improving performance

Using html to replace the element won't add the data associated with the sidebar.
Merge branch 'master' of github.com:hasadna/anyway
Merge pull request #125 from yosiat/master

Fixing previous commit while improving performance