set default dictionary from options
fix typo
use done instead of success method on ajax