Fixing js typecheck assertion generator.