made JSProlog Class