new template block for java-script implemented