protected function renderJs() {
        $id = $this->options['id'];
        $options = $this->getOptionsObject();

        $this->getView()->registerJs("$('#$id').remainingCharacters($options);");
    }