A port of chancejs to java