replaces manual var injection with grunt-replace

[ci skip]