Javascript type checking tool.