Moves the popup template to handelbars -- makes it vaguely readbale in comparison to how it was...