fix bug with scripts bundling within the HTML entry points