Fixing up appjs