adding default js to template