IDE-1692 fixed js templates