moved tests.js to tests.html rather than layout, rendering seems slower