Window now gets generated with all static methods. Fixed normalization of optional parameters in JQuery generator