mid js through