#46 Namespaced and refactored (most of) the JS on add / edit post page