Fixed typos in CascadedPolygonUnion

binaryUnion needed to cast mid index to an integer.
some functions expected a javascript.util.ArrayList and a js Array was
used.
fixed other variable name typos.
Added spec helper to require jsts for running with jasmine-node and added npm test command.
Added node_modules to ignore