Add nPower function to JavaApplication1