yeah i have found that we can run excel macro from javascript very easily. The code is
Excel.Workbooks.Open(file path name);
Excel.Visible = true;
Excel.Run(macro name);
here "macro name" means full name of macro for example if macro is in excel file named as Book1.xls and in the Module1 and let say macro name is Test so we will write as
Excel.Run("Book1.xls!Module1.Test)