Fix client side template mapping
Revert change to ajaxify.js
Get template mapping after removing relative path
Cleanup the vars
Merge pull request #1699 from char101/patch-7

Fix client side template mapping