js templates to different files