Use partials for JavaScript code and change title