Moved JavaScript to the bottom of the document.
Added extra gem and fix for conversion from JS to CS.