Update app.js

added code for /Create and /Edit using /Post
added Spinning icons