WebKit2: load template HTML including css/js code