Add typing for JDK Nashorn