Understanding the Role of JavaScript