MOved edit post lots of JS into the apropriate place, being overrides since it's JS