A two-story office building in Mountainside has changed hands, following a sale arranged by brokers with NAI James E. Hanson.