A quick and dirty Javascript inference engine.