Scripts used when porting js to java