moved template to js filedon't have to worry about reference