$.getScript('https://github.com/niklasvh/html2canvas/releases/download/0.4.1/html2canvas.js', function(){
html2canvas(document.body, {
//height: 1024,
//width: 768,
//background: '#fff',
onrendered: function(canvas) {
window.open(canvas.toDataURL( /* "image/jpeg" */ ));
}