empty checks on template
figuring out js namespacing