Fixes non-assignable expression error when `options` is not provided.

A non-assignable expression error is thrown when the `options` attribute is undefined. Creating a local options variable instead of trying to assign $scope.options avoids throwing this exception.