template and js endpoint call changes