It appears that the provided javascript wrappers for ICWS were generated from something else and would be easier to consume from their original format. Also is there any documentation for these Javascript libraries as they seem to be hit or miss when trying to make calls and the required order.