add i18n to pinning; fix issue when not using jquery