It seems that closing table tag needs to be full tag and not shortcut. The following fixes the problem
<table id="table" class="table table-striped" style="width:95%"></table>
instead of
<table id="table" class="table table-striped" style="width:95%" />