Move template registration out of main.js

Signed-off-by: Don Naegely <naegelyd@gmail.com>