Add onload&$includeContentLoaded event for template

Also remove the $eval & $evalAsync on the function(). Because $eval will just simply return the pass-in parameter function. Remove them to save CPU cycles