fixed calling external javascript and passing dict-of-options or keyword arguments