js moved to app directory