a simple java script engine