Updated to use html5 and json from stdlib