JSHint compliance and sce issue

The template it's not longer called from a string, but from the actual file
sync with master
Merge pull request #28 from davidmh/JSHnit-$sce

JSHint compliance and $sce issue