Linux has always had an app marketplace, it just wasn't called a "marketplace" (when everything is free, the marketplace/store analogy isn't appropriate). At least in Debian and derivatives, everything is a one-click install since '98.
How JavaScript fits in this picture, however, is still beyond me.