implement File.read operation in Nashorn