adding templates for js lib