use var instead of const because const is not portable
minor issues with index page