Smarty extractor and JsCode Refactoring