html5 index.js correction