fetch template js barebones