work out js template workflow