Migration to Nashorn

Migration to Nashorn Java 8