Fix AutoEd implementation; #197

Try running the script to see what it looks like. Note that
formatgeneral.js is still causing trouble, so I've left it commented
out.