fix language selection, add in jquery.templatex.js the posibility to add or append content via templates

Signed-off-by: Roger Manich <roger.manich@gmail.com>