better paths for smarty templates, reenabling the possibility to load javascripts from a cdn