fixed javascript bug & localized the plugin