Use a little helper function and a bunch of properties instead of the (traditional["JavaScript"] || syntax) : garbage.