Add JS dependencies to HTML template