escape is deprecated + unneeded in our case
use jquery instead of javascript
unncessary variable decalration
do not use multi arguments in append when everything is an html string
jshint
obsolete js file