(Optimize) Fix hash reference update issue between JS/CSS and HTML files

Testing process for this was:

1. Run `grunt` optimize on the original version
2. Make a change to `setpermissions.js` only
3. Run `grunt` optimize again.
4. Verify that the hash for the `setpermissions.html` in both optimized versions are the same, yet the hash for the `setpermissions.js` files are different. Oops!
5. Made this fix
6. Did steps 1-3 again, and then verified the HTML file hash change did change, which is expected