change test/index to use script tag templates