added js templates