Removes patrol.js reference in template and improves dynamic variable rendering.