cannonicalize ddg_spice fn definitions

find share -name \*.js -exec sed -ri 's/^var (ddg_spice_[^ ]+) = function/function \1 /' {} \;