Corrected IDL for switching
Added a typedef for Argument in ecmascript section
Correcting IDL usuage on ecmascript section