new js template architecture, including from external files w simple js cache. using templates for messages