simplified JS template