Javascript Cockpits