reorganized some of the js app. got the edit screen partially working