some tweaks to icejs template loading