cannonicalize ddg_spice fn definitions

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