defer javascript + fix some HTML5 issues