updated javascript generator to work for javascript in general rather than only win 8 javascript