Separate templates from index.html

Resolves https://github.com/KSHSK/WAVED/issues/83